package entity;

import com.alibaba.fastjson.annotation.JSONField;

public class Attraction {
    @JSONField(name = "id")
    private Integer id;
    @JSONField(name = "name")
    private String name;
    @JSONField(name = "rating")
    private Integer rating;
    @JSONField(name = "price")
    private Float price;
    @JSONField(name = "address")
    private String address;
    @JSONField(name = "openingHours")
    private String openingHours;
    @JSONField(name = "introduce")
    private String introduce;
    @JSONField(name = "pictureUrl")
    private String pictureUrl;
    @JSONField(name = "status")
    private String status;

    public Attraction() {
    }

    public Attraction(Integer id, String name, Integer rating, Float price, String address,
                      String openingHours, String introduce, String pictureUrl, String status) {
        this.id = id;
        this.name = name;
        this.rating = rating;
        this.price = price;
        this.address = address;
        this.openingHours = openingHours;
        this.introduce = introduce;
        this.pictureUrl = pictureUrl;
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getRating() {
        return rating;
    }

    public void setRating(Integer rating) {
        this.rating = rating;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getOpeningHours() {
        return openingHours;
    }

    public void setOpeningHours(String openingHours) {
        this.openingHours = openingHours;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public String getPictureUrl() {
        return pictureUrl;
    }

    public void setPictureUrl(String pictureUrl) {
        this.pictureUrl = pictureUrl;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Attraction{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", rating=" + rating +
                ", price=" + price +
                ", address='" + address + '\'' +
                ", openingHours='" + openingHours + '\'' +
                ", introduce='" + introduce + '\'' +
                ", pictureUrl='" + pictureUrl + '\'' +
                ", status='" + status + '\'' +
                '}';
    }
}
